public class Method {
    static void Methods() {
        int a = 10;
        int b = 20;
        double c = 1.5;
        double d = 2.3;
        double e = 5.6;

        System.out.println(max(a, b));
        System.out.println(max(c, d, e));

        System.out.println("------------巡猎1------------");
    }

    static int max(int a, int b) {
        return Math.max(a, b);
    }

    static double max(double a, double b, double c) {
        double d = Math.max(a, b);
        return Math.max(c, d);
    }

}
